#ifndef __TIM_H
#define __TIM_H

#include "stm32f4xx.h"


#define TIM4_CLK       		    RCC_APB1Periph_TIM4


#define TIM4_CH3_PIN            GPIO_Pin_14              
#define TIM4_CH3_GPIO_PORT      GPIOD                      
#define TIM4_CH3_GPIO_CLK       RCC_AHB1Periph_GPIOD
#define TIM4_PINSOURCE			GPIO_PinSource14
#define TIM4_AF					GPIO_AF_TIM4


#define TIM4_IRQn				TIM4_IRQn
#define TIM4_IRQHandler      	TIM4_IRQHandler



void TIM4_GPIO_Config(void); 

void TIM4_PWM_Config(void);

void Beep_TIM4_Config(void);
void Buzzer_ON(uint16_t psc, uint16_t pwm);
void Buzzer_OFF();


#endif
